package cn.fintecher.pangolin.service.dataimp.repository;

import cn.fintecher.pangolin.common.enums.ApprovalStage;
import cn.fintecher.pangolin.common.enums.FlowType;
import cn.fintecher.pangolin.entity.mysql.ProcessApplication;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

public interface ProcessApplicationRepository extends JpaRepository<ProcessApplication, String>, QuerydslPredicateExecutor<ProcessApplication> {
    /**
     * 查询是否有减免申请
     */
    boolean existsByCaseIdAndApprovalStageAndFlowType(String caseId, ApprovalStage result, FlowType flowType);
}
